﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;


namespace findMePanorama
{
    public class ShellTiles
    {
        public void LiveTile()
        {
            //live tile start 
            IEnumerable<ShellTile> tiles = ShellTile.ActiveTiles;

            //get the default tile
            var tile = tiles.First();

            //the new tile info to use to update the tile
            var tileData = new StandardTileData()
            {
                Title = "FInd.Me",
                Count = 17,
                BackgroundImage = new Uri("Images/Capture.PNG", UriKind.Relative),
                BackBackgroundImage = new Uri("ApplicationIcon.png", UriKind.Relative),
                BackTitle = "FInd.Me",
                BackContent ="news Feed"
                

            };

 
                      
            //var newTile = new StandardTileData()
            //{
            //    Title = "my Feed",
            //    BackgroundImage = new Uri("ApplicationIcon.png", UriKind.Relative)

            //};

            //var uri = "/Rssview.xaml?feedname=favouriteFeedName";
            //ShellTile.Create(new Uri(uri, UriKind.Relative), newTile);




            // Update the tile
             tile.Update(tileData);
        }
    }
}
